| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ResourceManagerWrapper.h
1 // ResourceManagerWrapper.h
3 //
5
6 namespace nkAstraeus::nkResourcesWrap
7 {
11 class ResourceManagerWrapper final
12 {
13 public :
14
15 // Environment update
21 static void updateEnvironment (nkScripts::Environment* env) ;
22
23 // Callbacks
24 // Working path
35 static nkScripts::OutputValue getWorkingPath (const nkScripts::DataStack& stack) ;
46 static nkScripts::OutputValue getWorkingPathAbsolute (const nkScripts::DataStack& stack) ;
47
48 // Launched path
59 static nkScripts::OutputValue getLaunchedPath (const nkScripts::DataStack& stack) ;
60
61 // Traductions
72 static nkScripts::OutputValue getRelativeFromAbsolute (const nkScripts::DataStack& stack) ;
83 static nkScripts::OutputValue getAbsoluteFromRelative (const nkScripts::DataStack& stack) ;
94 static nkScripts::OutputValue getRelativeFromWorkingDir (const nkScripts::DataStack& stack) ;
105 static nkScripts::OutputValue getAbsoluteFromWorkingDir (const nkScripts::DataStack& stack) ;
116 static nkScripts::OutputValue getFromWorkingDirFromRelative (const nkScripts::DataStack& stack) ;
127 static nkScripts::OutputValue getFromWorkingDirFromAbsolute (const nkScripts::DataStack& stack) ;
128
129 // Checks
140 static nkScripts::OutputValue checkFileExists (const nkScripts::DataStack& stack) ;
151 static nkScripts::OutputValue checkFolderExists (const nkScripts::DataStack& stack) ;
152
153 // Loading
164 static nkScripts::OutputValue loadFileIntoMemory (const nkScripts::DataStack& stack) ;
175 static nkScripts::OutputValue saveFileToDisk (const nkScripts::DataStack& stack) ;
176 } ;
177 }
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::saveFileToDisk
static nkScripts::OutputValue saveFileToDisk(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::checkFileExists
static nkScripts::OutputValue checkFileExists(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::loadFileIntoMemory
static nkScripts::OutputValue loadFileIntoMemory(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::checkFolderExists
static nkScripts::OutputValue checkFolderExists(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap
Encompasses the wrapping of nkResources for scripting.
Definition: Constants.h:7
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getFromWorkingDirFromAbsolute
static nkScripts::OutputValue getFromWorkingDirFromAbsolute(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getAbsoluteFromWorkingDir
static nkScripts::OutputValue getAbsoluteFromWorkingDir(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getRelativeFromWorkingDir
static nkScripts::OutputValue getRelativeFromWorkingDir(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getFromWorkingDirFromRelative
static nkScripts::OutputValue getFromWorkingDirFromRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper
Wraps a nkResources::ResourceManager and offer functions for use in scripting.
Definition: ResourceManagerWrapper.h:12
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getAbsoluteFromRelative
static nkScripts::OutputValue getAbsoluteFromRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getRelativeFromAbsolute
static nkScripts::OutputValue getRelativeFromAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getLaunchedPath
static nkScripts::OutputValue getLaunchedPath(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getWorkingPathAbsolute
static nkScripts::OutputValue getWorkingPathAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkResourcesWrap::ResourceManagerWrapper::getWorkingPath
static nkScripts::OutputValue getWorkingPath(const nkScripts::DataStack &stack)